<?php

require_once '../php_includes/class.Database.php';

$org = $_POST['org'];
$dest = $_POST['dest'];
$driver = $_POST['driver'];
$date = $_POST['date'];
$vehicle_reg = $_POST['vehicle_reg'];

$database = new Database();

$database->addTrip($org, $dest, $date, $driver, $vehicle_reg);

header('Location: ./?p=overview');

